import 'package:dio/dio.dart';

class HomeAPI {
  final Dio _dio;

  HomeAPI(this._dio);

  // 获取首页数据
  Future<dynamic> list({String name = 'moren'}) async {
    Response res = await _dio.get('/v2/diy/get_diy/'+name);
    print('-- 首页接口被调用 --');
    return res.data;
  }
}